<?php

namespace common\model;

use think\model\RelationModel;

class OauthUserClientModel extends RelationModel
{
    //自动验证
    protected $_validate = [
        ['app_key', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
        ['app_key', '0,36', '', self::EXISTS_VALIDATE, 'length'],
        ['user_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
    ];

    // 自动完成
    protected $_auto = [

    ];
}
